<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_name" class="form-control" name="row[coupon_name]" type="text" value="{$row.coupon_name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_amount" class="form-control" step="0.01" name="row[coupon_amount]" type="number" value="{$row.coupon_amount}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Days')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-days" class="form-control" name="row[days]" type="number" value="{$row.days}" placeholder="">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Limit_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[limit_type]', $limitTypeList, $row.limit_type, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_limit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_limit" class="form-control" name="row[coupon_limit]" type="number" value="{$row.coupon_limit}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[type]', $typeList, $row.type, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::datepicker('row[start_time]', $row.start_time, ['data-rule'=>'required', 'class'=>'form-control'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::datepicker('row[coupon_time]', $row.coupon_time, ['data-rule'=>'required', 'class'=>'form-control'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_rate" class="form-control" name="row[coupon_rate]" type="number" value="{$row.coupon_rate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_eject')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[is_eject]', ['1' => '否', '2' => '是'], $row.is_eject, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[status]', ['1' => '上架', '2' => '下架'], $row.status, ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
